//
//  LocationManager.h
//  Location_Demo
//
//  Created by JXH on 2021/1/13.
//

#import <Foundation/Foundation.h>

typedef void(^currentLocationBlock)(double latitude,double longitude,NSString *address);

@interface LocationManager : NSObject

/** 最小上传间隔: 默认60s*/
@property (nonatomic, assign) NSTimeInterval minUpLoadTimeInterval;
/** 最小上传数量: 默认5条*/
@property (nonatomic, assign) NSInteger minUpLoadCount;
/** 当前定位信息的回调*/
@property (nonatomic, copy) currentLocationBlock block;

/** 定位管理单例*/
+ (instancetype)sharedManager;
/** 开始定位收集*/
+ (void)start;
/** 停止定位收集*/
+ (void)stop;
/** 手动上传收集的定位信息：内存中*/
+ (void)upload;


@end
